package edu.zut.oop;

import java.time.LocalDate;

public class BookTest {

    public static void main(String[] args) {

        Book book = new Book();
        book.number = "rj159465";
        book.name = "Java基础";
        //.....

        /*
        空指针异常：type属性没有进行赋值，默认是null
        if (book.type.equals("计算机")){

        }*/

        Book book1 = new Book("rj556789","SpringBoot开发","软件开发类",58.5, LocalDate.now());
        book1.tell();

        Book book2 = new Book();
        book2 = book2.getBook();
        book2.tell();
    }

}
